//
//  MapViewController.h
//  iLo
//
//  Created by Huahang Liu on 10/9/09.
//  Copyright 2009 University of Southern California. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>

#import "FriendsDb.h"

@interface MapViewController : UIViewController<CLLocationManagerDelegate> {
    MKMapView*          mapView;
    CLLocationManager*  locationManager;

    FriendsDb* friendsDb;
}

@property (nonatomic, retain) IBOutlet MKMapView* mapView;
@property (nonatomic, retain) CLLocationManager*  locationManager;
@property (nonatomic, retain) FriendsDb* friendsDb;


- (void)refreshCurrentLocation:(id)sender;

- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation;
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error;

@end
